<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="robots" content="noindex,nofollow">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<title><?php echo $cfg_webname;?>后台管理</title>
		<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
		<link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="../static/web/css/admin.css">
		<script src="../static/web/js/jquery.min.js"></script>
	</head>
	<body class="showmenu">
		<?php if (preg_match('/MSIE/i',$_SERVER['HTTP_USER_AGENT']) || preg_match('/Trident/i',$_SERVER['HTTP_USER_AGENT'])) {?>
		<div id="browsehappy">
			<span>您使用的浏览器已过时，请<a href="https://www.dedebiz.com/browsehappy" target="_blank">升级浏览器</a>，提高后台操作体验</span>
			<a onclick="document.getElementById('browsehappy').style.display='none';" class="browsehappy-close">×</a>
		</div>
		<?php }?>
		<nav class="head">			
			<div class="top-logo">
				<span class="top-name"><a href="index_body.php" target="main"><?php echo cn_substr($cfg_webname,8);?></a></span>
				<span class="top-version"><?php echo $cfg_version_detail;?></span>
				<?php if (DEDEBIZ_SAFE_MODE) {?>
				<a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-primary btn-xs btn-version">安全</a>
				<?php } else {?>
				<a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-warning btn-xs btn-version">开发</a>
				<?php }?>
			</div>
			<div class="top-item">
				<ul class="mb-0">
					<li class="pl-0"><a href="javascript:;" id="togglemenu" title="侧边伸缩"><i class="fa fa-dedent"></i></a></li>
					<?php if ($cuserLogin->getUserType() >= 10) {?>
					<li><a href="sys_info.php" target="main" title="系统配置"><i class="fa fa-cog"></i></a></li>
					<li><a href="catalog_main.php" target="main" title="栏目管理"><i class="fa fa-bars"></i></a></li>
					<li><a href="diy_main.php" target="main" title="自定义表单管理"><i class="fa fa-area-chart"></i></a></li>
					<?php }?>
					<li><a href="file_manage_main.php<?php echo DEDEBIZ_SAFE_MODE?'?activepath='.$cfg_medias_dir:'';?>" target="main" title="文件管理"><i class="fa fa-folder"></i></a></li>
					<?php if (!DEDEBIZ_SAFE_MODE) {?><li><a href="templets_main.php" target="main" title="模板管理"><i class="fa fa-cube"></i></a></li><?php }?>
					<li><a href="makehtml_all.php" target="main" title="更新整站"><i class="fa fa-repeat"></i></a></li>
					<?php echo ($cfg_mb_open=='Y')?'<li><a href="../user" target="_blank" title="会员中心"><i class="fa fa-user-circle"></i></a></li>':'';?>
					<li><a href="../" target="_blank" title="预览首页"><i class="fa fa-home"></i></a></li>
					<li>
						<form action="action_search.php" method="post" target="main">
							<input type="text" name="keyword" placeholder="功能搜索" class="search-input">
							<button type="submit" class="search"><i class="fa fa-search"></i> </button>
						</form>
					</li>
				</ul>
			</div>
			<div class="top-admin">
				<ul class="mb-0">
					<li><a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="<?php echo $cuserLogin->getUserFace();?>"><?php echo $cuserLogin->getUserName();?><?php if ($cuserLogin->getUserType()==10){echo "管理员";} else if ($cuserLogin->getUserType()==5) {echo "栏目员";} else {echo "文档员";}?></a></li>
					<li><a href="exit.php">退了</a></li>
				</ul>
			</div>
		</nav>
		<div class="body-left">
			<div class="menu"><iframe name="menu" src="index_menu.php"></iframe></div>
		</div>
		<div class="body-right">
			<div class="main"><iframe name="main" src="index_body.php"></iframe></div>
		</div>
		<script>
			$(function() {
				LeftMenuToggle();
			});
			function LeftMenuToggle() {
				$("#togglemenu").click(function() {
					if ($("body").attr("class") == "showmenu") {
						$("body").attr("class", "hidemenu");
						$(this).html('<i class="fa fa-indent"></i>');
					} else {
						$("body").attr("class", "showmenu");
						$(this).html('<i class="fa fa-dedent"></i>');
					}
				});
			};
		</script>
	</body>
</html>